<%@ page language="java" contentType="text/xml; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.io.*"%>
<%
	/*	Object lock = application.getAttribute("lock");
	 if (lock == null) {
	 application.setAttribute("lock", new Object());
	 lock = application.getAttribute("lock");
	 }
	 synchronized (lock) {
	 lock.wait();*/
%>
<response> <status><%
	if (session.getAttribute("status") == null) {
%>UNKOWN<%
	} else {
%><%=session.getAttribute("status")%><%
	}
	session.removeAttribute("status");
%></status> <user> <id><%=session.getAttribute("username")%></id><name><%=session.getAttribute("username")%></name> </user> </response>

<!-- 登录部分通信格式设计
请求报文格式：
<request>
    <type>authen</type>
</request>

响应报文格式：
<response>
    <status>OK</status>

    <user>

        <id>eagle</id>
        <name>Zhang Yuen</name>

    </user>
</response>
 -->